package com.thread.main.thread;

/**
 * @auther zhangwj
 * @date 2020/4/21 4:46 下午
 */
public class LockDemo {

    public static void main(String[] args) {

    }
}

class Thread_A extends Thread {

    private Thread_B thread_b;

    Thread_A(Thread_B thread_b) {
        this.thread_b = thread_b;
    }

    @Override
    public void run() {

        thread_b.run();
    }
}

class Thread_B extends Thread {

    @Override
    public void run() {

    }
}